
// 准备一个数组，只有在发布的时候才会使用插件
const conPlugin = []
if (process.env.NODE_ENV === 'production') {
  conPlugin.push("transform-remove-console")
}

module.exports = {
  "presets": [
    "@vue/app"
  ],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ],
    ...conPlugin,
    "@babel/plugin-syntax-dynamic-import"
  ]
}